package com.wanghaoran.service;

import com.github.pagehelper.PageInfo;
import com.wanghaoran.dto.*;
import com.wanghaoran.entity.Room;
import com.wanghaoran.entity.School;
import com.wanghaoran.excel.RoomExcel;
import com.wanghaoran.excel.SchoolExcel;
import com.wanghaoran.vo.SchoolVO;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author wanghaoran
 */

public interface SchoolService {

    int insert(SchoolInsertDTO dto);

    School select(Long id);

    List<SchoolVO> list();

    PageInfo<School> page(SchoolPageDTO dto);

    int update(SchoolUpdateDTO dto);

    int delete(Long id);

    int deleteBatch(List<Long> ids);

    List<SchoolExcel> getExcelData();
}
